From 69e8ef73148b0b31d32284e40837ac50bbdbc013 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 2 Mar 2009 10:31:16 +0000 Subject: [PATCH] acm: Return a valid buffer This patch reverts a previous patch trying to fix a memory, even though I don't think there was any. Now return a valid buffer. All functions calling this function do free the buffer. Signed-off-by: Stefan Berger --- tools/python/xen/lowlevel/acm/acm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/python/xen/lowlevel/acm/acm.c b/tools/python/xen/lowlevel/acm/acm.c index d426420d70..662c7f72d4 100644 --- a/tools/python/xen/lowlevel/acm/acm.c +++ b/tools/python/xen/lowlevel/acm/acm.c @@ -68,8 +68,6 @@ static void *__getssid(int domid, uint32_t *buflen) goto out2; } else { *buflen = SSID_BUFFER_SIZE; - free(buf); - buf = NULL; goto out2; } out2: -- 2.30.2